package com.monad.firemoth.system.controller;

import com.monad.firemoth.common.utils.Result;
import com.monad.firemoth.system.entity.User;
import com.monad.firemoth.system.service.UserService;
import io.swagger.v3.oas.annotations.tags.Tag;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * 用户 Controller
 *
 * @author 单C胞生物
 * @since 2024-04-20 05:33:01
 */
@Tag(name = "用户")
@RestController
@RequestMapping("/system/user")
public class UserController {

    @Autowired
    private UserService userService;

    @GetMapping("/list")
    public Result getlist(User user){
        List<User> list = userService.list();
        return Result.success(list);
    }

}
